package com.ytjj.qmyx.admin.mapper;

import com.ytjj.qmyx.admin.model.MessageBody;
import com.ytjj.qmyx.admin.model.PushMessage;
import com.ytjj.qmyx.admin.model.response.PushMessagePro;
import com.ytjj.qmyx.admin.model.vo.PushMessageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PushMessageMapper {

    List<PushMessageVO> selectPushMessagePage(@Param("pushMessagePro")PushMessagePro pushMessagePro);

    List<PushMessageVO> PushMessage(@Param("messageTypeId")Integer messageTypeId);

    int insertPushMessage(PushMessage pushMessage);

    int insertMessageBodyList(@Param("messagebody")MessageBody messagebody, @Param("messageId") Integer messageId);

    int updatePushMessage(PushMessage pushMessage);

    int updateMessageBody(MessageBody messagebody);

    PushMessageVO selectPushMessage(Integer id);
}
